//
//  ZMNotification.swift
//  OnlineClassRoom
//
//  Created by 刘亿前 on 2020/5/27.
//  Copyright © 2020 智蚂优服. All rights reserved.
//

import Foundation

enum ZMNotificationOption {
    /// loginIn
    case loginIn
    /// 退出登录
    case loginOut
    /// 授权成功
    case aliAuthSuccess(_ result: [String: Any])
    /// 支付成功
    case payOtion(_ option : ZMPayOption)
    /// app回到前台
    case willEnterForeground
    /// 刷新VIP账户信息
    case updateVIPMallBankInfo
    /// 刷新账户信息
    case updateBalance
    /// 刷新订单列表
    case refreshOrderList
    /// 分享成功
    case shareSuccess
    
    case addressEdite(_ ad : AddressModel)
    
    // 第三方账号绑定成功
    case bindThirdSuccess
    
    case auctionRefersh
}

enum ZMPayOption : String {
    case success = "支付成功"
    case handling = "订单正在处理中"
    case payFaild = "订单支付失败"
    case payCancel = "订单取消"
    case netBad = "网络连接出错"
}


class ZMNotification  {
    static let shard = ZMNotification()
    let subject = PublishSubject<ZMNotificationOption>()
}


   
